using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace WindowsFormsApplication1
{
    public partial class rptDSSVKyLuat : DevExpress.XtraReports.UI.XtraReport
    {
        public rptDSSVKyLuat()
        {
            InitializeComponent();
        }

        public void BindData(DateTime tungay, DateTime denngay)
        {
            colTungay.Text = tungay.ToShortDateString();
            colDenngay.Text = denngay.ToShortDateString();
            colMaSV.DataBindings.Add("Text", DataSource, "Masv");
            colHoTen.DataBindings.Add("Text", DataSource, "Hoten");
            colSoQD.DataBindings.Add("Text", DataSource, "SoQDKL");
            colNgayKL.DataBindings.Add("Text", DataSource, "NgayKL", "{0:MM/dd/yyyy}");
            colHTKL.DataBindings.Add("Text", DataSource, "HinhThucKyLuat");
            colLydoKL.DataBindings.Add("Text", DataSource, "LydoKL");
        }

    }
}
